#  /**
#  * Copyright (c) 2022 Beijing Jiaotong University
#  * PhotLab is licensed under [Open Source License].
#  * You can use this software according to the terms and conditions of the [Open Source License].
#  * You may obtain a copy of [Open Source License] at: [https://open.source.license/]
#  *
#  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
#  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
#  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
#  *
#  * See the [Open Source License] for more details.
#  */
#  /**
#  * Author: Zheng Wang
#  * Created: Jul. 1, 2022
#  * Supported by: National Key Research and Development Program of China
#  */

class ConversionError(Exception):
    """
        单位转换异常类,用于描述单位转换相关的异常信息
        Unit conversion exception class, used to describe unit conversion exception information
    """
    pass


class ModuleAnalysisError(Exception):
    """
        模块分析异常类,用于描述模块分析相关的异常信息
        Module analysis exception class describes the exception information related to module analysis
    """
    pass


class DispatcherError(Exception):
    """
        任务调度异常类,用于描述计算引擎调度过程中的异常信息
        The task scheduling exception class describes the exception information during computing engine scheduling
    """
    pass


class ArithmeticUnitError(Exception):
    """
        运算单元异常类,用于描述调用底层运算库过程中的异常信息
        Arithmetic unit exception,to describe the exception when executing phot function
    """
    pass


class VerificationError(Exception):
    """
        校验异常类,用于描述校验合法行过程中产生的异常信息
        The verification exception class describes the exception information generated during the verification of valid lines
    """
    pass


class ComputationalGraphGenerationError(Exception):
    """
        计算图生成异常
        The Exception occurs when generating computational graph
    """
    pass


class EngineError(Exception):
    """
        计算引擎异常类
        The Exception occurs when something wrong inside computing engine
    """
    pass


class RunOutOfTime(EngineError):
    """
        运算超时异常
        Operation timeout exception
    """
    pass
